package work.shyk.cdp.xmlDemo.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.LinkedList;

/**
 * description: <br>
 * createTime: 2020/10/2015:43 <br>
 *
 * @author zzh
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="slavesList")
public class SlavesEntity{

    @XmlElementWrapper(required=true,name="entitys")
    @XmlElement(name="entity")
    LinkedList<SlaveEntity> entityList=new LinkedList<SlaveEntity>();

    public LinkedList<SlaveEntity> getEntityList() {
        return entityList;
    }

    public void setEntityList(LinkedList<SlaveEntity> entityList) {
        this.entityList = entityList;
    }

}
